package cn.kgc.controller;

import cn.kgc.entity.User;
import cn.kgc.service.UserService;
import cn.kgc.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author: mosin
 * @version: v1.0  2022/5/4
 */
@Controller
public class UserController {

    @Autowired
    private UserService userService;

    public Result login(User user){
        return userService.login(user);
    }

    public Result register(User user){
        return userService.register(user);
    }

    public Result findAll(){
        return userService.findAll();
    }



}
